package com.tarena.lbs.business.dao.repository;

import com.tarena.lbs.base.protocol.exception.BusinessException;
import com.tarena.lbs.base.protocol.pager.PageResult;
import com.tarena.lbs.business.api.pojo.BusinessDto;
import com.tarena.lbs.business.base.exception.BusinessServiceException;
import com.tarena.lbs.business.pojo.param.BusinessParam;
import com.tarena.lbs.business.pojo.po.BusinessPO;
import com.tarena.lbs.business.pojo.query.BusinessQuery;
import com.tarena.lbs.business.pojo.vo.BusinessStoreVO;
import com.tarena.lbs.business.pojo.vo.BusinessVO;
import org.springframework.stereotype.Repository;

@Repository
public interface BusinessRepository {


    PageResult<BusinessVO> getBusinessList(BusinessQuery query);

    BusinessStoreVO selectBusinessStore(Integer businessId) throws BusinessServiceException;

    void saveParam(BusinessPO businessPO);

    BusinessPO findByBusinessName(String businessName);


    BusinessDto getBusinessById(Integer businessId) throws BusinessException;
}
